/*
 * Copyright (c) zhg2yqq.com Corp.
 * All Rights Reserved.
 */
package com.zhg2yqq.wheels.mvc.base;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @author zhg2yqq, 2022年12月5日
 * @version zhg2yqq v1.0
 */
public class BasePageCondition<T> extends BaseCondition<T> {
    private static final long serialVersionUID = 1L;
    private int pageSize = 10;
    private int pageNum = 1;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public IPage<T> getPage() {
        return new Page<>(pageNum, pageSize);
    }
}
